package com.yan.domain;

import com.yan.domain.Pet;

public class Dog extends Pet {
    private String breed;

    public Dog(String name, int health, int intimacy, String breed) {
        super(name, health, intimacy);
        this.breed = breed;
    }

    public String getBreed() {
        return breed;
    }

    public void setBreed(String breed) {
        this.breed = breed;
    }

    public void print(){
        System.out.println("宠物"+getName()+"的自白:");
        System.out.println("我的名字叫"+getName()+",我的健康值是:"+getHealth()+"我和我主人的亲密度:"+getIntimacy()+"");
        System.out.println("我是一只"+getBreed());
    }
}
